package com.android.dumiaogou.model.group;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * Created by Administrator on 2016/9/1.
 */
public class MainList {

    /**
     * list_total : 3
     * list : [{"id":"267","name":"布西妮 抽绳双肩包学院风学生背包复古旅行包","price":"89.00","team_price":"1.00","discount_price":0.1,"thumb":"http://192.168.1.47//upload/images/gallery/2/m/95_src.jpg","team_num":"3","team_people_num":"9","luck_num":0,"end_time":"1473064200"}]
     */

    private MainListdata data;
    /**
     * data : {"list_total":3,"list":[{"id":"267","name":"布西妮 抽绳双肩包学院风学生背包复古旅行包","price":"89.00","team_price":"1.00","discount_price":0.1,"thumb":"http://192.168.1.47//upload/images/gallery/2/m/95_src.jpg","team_num":"3","team_people_num":"9","luck_num":0,"end_time":"1473064200"}]}
     * flag : true
     * code : 0
     * msg : 操作成功
     * time : 1473644135
     */

    private boolean flag;
    private int code;
    private String msg;
    private int time;

    public MainListdata getData() {
        return data;
    }

    public void setData(MainListdata data) {
        this.data = data;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }


    public static class MainListdata {

        private int list_type;

        public int getList_type() {
            return list_type;
        }

        public void setList_type(int list_type) {
            this.list_type = list_type;
        }

        private int list_total;
        /**
         * id : 267
         * name : 布西妮 抽绳双肩包学院风学生背包复古旅行包
         * price : 89.00
         * team_price : 1.00
         * discount_price : 0.1
         * thumb : http://192.168.1.47//upload/images/gallery/2/m/95_src.jpg
         * team_num : 3
         * team_people_num : 9
         * luck_num : 0
         * end_time : 1473064200
         */

        private List<Mainlistdata> list;

        public int getList_total() {
            return list_total;
        }

        public void setList_total(int list_total) {
            this.list_total = list_total;
        }

        public List<Mainlistdata> getList() {
            return list;
        }

        public void setList(List<Mainlistdata> list) {
            this.list = list;
        }

        public static class Mainlistdata implements MultiItemEntity {


            public static final int ONE = 0;
            public static final int DOUBLE = 1;
            public static final int THREE = 3;
            private int itemType;

            public Mainlistdata(int itemType) {
                this.itemType = itemType;
            }

            @Override
            public int getItemType() {
                return itemType;
            }

            private String id;
            private String typeid;
            private String name;

            public String getTypeid() {
                return typeid;
            }

            public void setTypeid(String typeid) {
                this.typeid = typeid;
            }

            private String price;
            private String team_price;
            private double discount_price;
            private String thumb;
            private String team_num;
            private String team_people_num;
            private int luck_num;
            private String end_time;
            private String start_time;
            private int run_time;

            public Mainlistdata(int itemType, String id, String typeid, String name, String price, String team_price, double discount_price, String thumb, String team_num, String team_people_num, int luck_num, String end_time, String start_time, int run_time) {
                this.itemType = itemType;
                this.id = id;
                this.typeid = typeid;
                this.name = name;
                this.price = price;
                this.team_price = team_price;
                this.discount_price = discount_price;
                this.thumb = thumb;
                this.team_num = team_num;
                this.team_people_num = team_people_num;
                this.luck_num = luck_num;
                this.end_time = end_time;
                this.start_time = start_time;
                this.run_time = run_time;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public String getTeam_price() {
                return team_price;
            }

            public void setTeam_price(String team_price) {
                this.team_price = team_price;
            }

            public double getDiscount_price() {
                return discount_price;
            }

            public void setDiscount_price(double discount_price) {
                this.discount_price = discount_price;
            }

            public String getThumb() {
                return thumb;
            }

            public void setThumb(String thumb) {
                this.thumb = thumb;
            }

            public String getTeam_num() {
                return team_num;
            }

            public void setTeam_num(String team_num) {
                this.team_num = team_num;
            }

            public String getTeam_people_num() {
                return team_people_num;
            }

            public void setTeam_people_num(String team_people_num) {
                this.team_people_num = team_people_num;
            }

            public int getLuck_num() {
                return luck_num;
            }

            public void setLuck_num(int luck_num) {
                this.luck_num = luck_num;
            }

            public String getEnd_time() {
                return end_time;
            }

            public void setEnd_time(String end_time) {
                this.end_time = end_time;
            }

            public String getStart_time() {
                return start_time;
            }

            public void setStart_time(String start_time) {
                this.start_time = start_time;
            }

            public int getRun_time() {
                return run_time;
            }

            public void setRun_time(int run_time) {
                this.run_time = run_time;
            }
        }
    }
}
